package com.sy.common.result;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(202, "服务异常"),

    LOGIN_ERROR(203, "认证失败"),
    DATA_ERROR(204, "数据异常"),

    ACCOUNT_STOP(205, "用户以被停用"),
    LOGIN_AUTH(208, "未登录"),
    PERMISSION(209, "没有权限");

    private Integer code;
    private String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
